]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Don't mix declarations and code
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 18:42:24 +0000 (20:42 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 19:32:50 +0000 (21:32 +0200)
src/shell-perf-helper.c

index eea5d47bebabbf0f5a61ff3481a7416a4c28bf8d..e5eab208ba763bf82b55a189e9e9501cee08f817 100644 (file)
@@ -125,9 +125,10 @@ on_window_draw (GtkWidget  *window,
                 WindowInfo *info)
 {
   cairo_rectangle_int_t allocation;
-  gtk_widget_get_allocation (window, &allocation);
   double x_offset, y_offset;
 
+  gtk_widget_get_allocation (window, &allocation);
+
   /* We draw an arbitrary pattern of red lines near the border of the
    * window to make it more clear than empty windows if something
    * is drastrically wrong.